package edu.whu.demo.dao;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import edu.whu.demo.domain.Schedule;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author 
 * @since 2022-11-24
 */
@Mapper
public interface ScheduleDao extends BaseMapper<Schedule> {

    /*多表查询，和用户表*/
    public IPage<Schedule> findScheduleByUser(IPage<Schedule> page, @Param(Constants.WRAPPER) QueryWrapper<Schedule> wrapper);
    /*单表查询*/
    public IPage<Schedule> findSchedule(IPage<Schedule> page, @Param(Constants.WRAPPER) QueryWrapper<Schedule> wrapper);


}
